package com.demo.util;

import java.util.Calendar;

/**
 * @author hornsey
 * @date 2022/10/19
 */
public class DateUtil {

	public static long getCurrentDate() {
		Calendar calendar = Calendar.getInstance();
		calendar.set(Calendar.SECOND, 0);
		calendar.set(Calendar.MINUTE, 0);
		calendar.set(Calendar.HOUR_OF_DAY, 0);
		calendar.set(Calendar.MILLISECOND, 0);
		return calendar.getTimeInMillis();
	}
}
